import request from '@/config/axios'
import { ListParams, FeedbackListResponse, FeedbackItem } from './types'

// 反馈建议列表
export const feedbackListApi = (params: ListParams) => {
  return request.get<FeedbackListResponse>({ url: '/feedback/page', params })
}

// 反馈建议详情
export const feedbackDetailApi = (id: number) => {
  return request.get<FeedbackItem>({ url: `/feedback/details?id=${id}` })
}
